var o = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), e = require("../../../uv-ui-tools/libs/mixin/mixin.js"), n = require("./props.js"), r = require("../../../../common/vendor.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var i = {
    name: "uv-keyboard",
    mixins: [ o.mpMixin, e.mixin, n.props ],
    emits: [ "close", "change", "confirm", "cancel", "backspace", "changeCarInputMode" ],
    methods: {
        open: function() {
            this.$refs.keyboardPopup.open();
        },
        close: function() {
            this.$refs.keyboardPopup.close();
        },
        popupChange: function(o) {
            o.show || this.$emit("close");
        },
        change: function(o) {
            this.$emit("change", o);
        },
        onConfirm: function() {
            this.$emit("confirm"), this.closeOnClickConfirm && this.close();
        },
        onCancel: function() {
            this.$emit("cancel"), this.close();
        },
        backspace: function() {
            this.$emit("backspace");
        },
        changeCarInputMode: function(o) {
            this.$emit("changeCarInputMode", o);
        },
        changeCarMode: function() {
            this.$refs.uvKeyboardCarRef && this.$refs.uvKeyboardCarRef.changeCarInputMode();
        }
    }
};

Array || (r.resolveComponent("uv-keyboard-number") + r.resolveComponent("uv-keyboard-car") + r.resolveComponent("uv-popup"))(), 
Math || (function() {
    return "../uv-keyboard-number/uv-keyboard-number.js";
} + function() {
    return "../uv-keyboard-car/uv-keyboard-car.js";
} + function() {
    return "../../../uv-popup/components/uv-popup/uv-popup.js";
})();

var t = r._export_sfc(i, [ [ "render", function(o, e, n, i, t, s) {
    return r.e({
        a: o.tooltip
    }, o.tooltip ? r.e({
        b: o.showCancel
    }, o.showCancel ? {
        c: r.t(o.showCancel && o.cancelText),
        d: r.o(function() {
            return s.onCancel && s.onCancel.apply(s, arguments);
        })
    } : {}, {
        e: o.showTips
    }, o.showTips ? {
        f: r.t(o.tips ? o.tips : "number" == o.mode ? "数字键盘" : "card" == o.mode ? "身份证键盘" : "车牌号键盘")
    } : {}, {
        g: o.showConfirm
    }, o.showConfirm ? {
        h: r.t(o.showConfirm && o.confirmText),
        i: r.o(function() {
            return s.onConfirm && s.onConfirm.apply(s, arguments);
        })
    } : {}) : {}, {
        j: "number" == o.mode || "card" == o.mode
    }, "number" == o.mode || "card" == o.mode ? {
        k: r.o(s.backspace),
        l: r.o(s.change),
        m: r.p({
            random: o.random,
            mode: o.mode,
            dotDisabled: o.dotDisabled
        })
    } : {
        n: r.sr("uvKeyboardCarRef", "fd392b7c-2,fd392b7c-0"),
        o: r.o(s.backspace),
        p: r.o(s.change),
        q: r.o(s.changeCarInputMode),
        r: r.p({
            random: o.random,
            autoChange: o.autoChange,
            disKeys: o.disKeys,
            customabc: o.customabc
        })
    }, {
        s: r.sr("keyboardPopup", "fd392b7c-0"),
        t: r.o(s.popupChange),
        v: r.p({
            mode: "bottom",
            overlay: o.overlay,
            closeOnClickOverlay: o.closeOnClickOverlay,
            safeAreaInsetBottom: o.safeAreaInsetBottom,
            zIndex: o.zIndex,
            customStyle: {
                backgroundColor: "rgb(214, 218, 220)"
            }
        })
    });
} ], [ "__scopeId", "data-v-fd392b7c" ] ]);

wx.createComponent(t);